package com.phalanxim.service;

import java.util.Date;

import java.util.Set;
public class Customer
{
  private Long id;
  private String firstName;
  private String lastName;
  private String email;
  private String password;
  private UserType userType = UserType.UNKNOWN;
  private String ssn;
  private Date dob;
  private boolean active;
  private Set<Account> accounts;

  public Long getId()
  {
    return id;
  }

  public void setId(Long id)
  {
    this.id = id;
  }

  public String getFirstName()
  {
    return firstName;
  }

  public void setFirstName(String firstName)
  {
    this.firstName = firstName;
  }

  public String getLastName()
  {
    return lastName;
  }

  public void setLastName(String lastName)
  {
    this.lastName = lastName;
  }

  public String getEmail()
  {
    return email;
  }

  public void setEmail(String email)
  {
    this.email = email;
  }

  public String getPassword()
  {
    return password;
  }

  public void setPassword(String password)
  {
    this.password = password;
  }

  public int getUserType()
  {
    return userType.getValue();
  }

  public void setUserType(int userType)
  {
    this.userType = UserType.forCode(userType);
  }

  public String getSsn()
  {
    return ssn;
  }

  public void setSsn(String ssn)
  {
    this.ssn = ssn;
  }

  public Date getDob()
  {
    return dob;
  }

  public void setDob(Date dob)
  {
    this.dob = dob;
  }

  public boolean isActive()
  {
    return active;
  }

  public void setActive(boolean active)
  {
    this.active = active;
  }

  public Set<Account> getAccounts()
  {
    return accounts;
  }

  public void setAccounts(Set<Account> accounts)
  {
    this.accounts = accounts;
  }
}